﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:BusinessIntelligenceToolkit.Controls">
    <Style TargetType="{x:Type local:BitListBox}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
        <!--  <Setter Property="UseLayoutRounding" Value="True"/>  -->
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:BitListBox}">
                    <local:BitScrollViewer x:Name="PART_ScrollViewer"
                                           HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                           HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                           Animation="{TemplateBinding Animation}"
                                           Background="{TemplateBinding Background}"
                                           CollectionView="{TemplateBinding CollectionView}"
                                           ItemsControl="{Binding RelativeSource={RelativeSource TemplatedParent}}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>